//
//  MineProfitTableViewCell.m
//  renmingongshe
//
//  Created by macbook on 2017/11/2.
//  Copyright © 2017年 xiaodian. All rights reserved.
//

#import "MineProfitTableViewCell.h"

@implementation MineProfitTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)cellConfigureDic:(NSDictionary *)dic
{
    for (NSString *str in [dic allKeys]) {
        if ([str isEqualToString:@"goodsName"]) {
            _TypeLabel.text = [NSString stringWithFormat:@"购买商品[%@]获得分润", dic[@"goodsName"]];
            _StatusLabel.text = [NSString stringWithFormat:@"数量：%@  %@", dic[@"goodsNum"], dic[@"createTime"]];
            _ProfitLabel.text = [NSString stringWithFormat:@"+%.1f点", [dic[@"goods_pv"] floatValue]];
            break;
        }else{
            _TypeLabel.text = [NSString stringWithFormat:@"充值%.2f获得分润", [dic[@"recharge_money"] floatValue]];
            _StatusLabel.text = [NSString stringWithFormat:@"%@", dic[@"createTime"]];
            _ProfitLabel.text = [NSString stringWithFormat:@"+%.1f点", [dic[@"get_pv"] floatValue]];
        }
    }
    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
